.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;
.source "RewardsView.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;
.implements Landroid/view/View$OnClickListener;
.implements Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView$IVideoEvents;
.implements Lcom/burstly/lib/component/networkcomponent/burstly/html/IJsBridge;
.implements Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$IVideoCacheListener;
.implements Landroid/media/MediaPlayer$OnPreparedListener;
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "DefaultLocale"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$VideoRunnable;
    }
.end annotation


# static fields
.field static final BRIDGE_LOADED:Ljava/lang/String; = "console.log(\"firing window.burstlyBridgeLoaded if defined\"); if (window.burstlyBridgeLoaded != null) window.burstlyBridgeLoaded();"

.field static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final NO_VIDEO_URL:Ljava/lang/String; = "none"

.field private static final PLAY:Ljava/lang/String; = "pVideo"

.field private static final SPLITTER:Ljava/lang/String; = "=\""

.field static final TAG:Ljava/lang/String; = "RewardsView"

.field public static final VERSION:Ljava/lang/String; = "2"


# instance fields
.field mCloseButtonControl:Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

.field mContentParent:Landroid/view/ViewGroup;

.field private volatile mDuration:I

.field mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

.field mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;",
            ">;"
        }
    .end annotation
.end field

.field volatile mPageLoaded:Z

.field private mParentRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

.field volatile mPublishedBridgeLoaded:Z

.field private mState:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

.field private volatile mStopped:Z

.field private final mUiHandler:Landroid/os/Handler;

.field private mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

.field private mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

.field mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

.field mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;",
            ">;"
        }
    .end annotation
.end field

.field private mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 97
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    const/4 v2, 0x0

    .line 236
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;-><init>(Landroid/content/Context;)V

    .line 218
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    .line 223
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;->LOADING:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mState:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    .line 237
    const-string v0, "burstlyBridge"

    invoke-virtual {p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 238
    new-instance v0, Landroid/webkit/WebViewClient;

    invoke-direct {v0}, Landroid/webkit/WebViewClient;-><init>()V

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 239
    new-instance v0, Landroid/webkit/WebChromeClient;

    invoke-direct {v0}, Landroid/webkit/WebChromeClient;-><init>()V

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 240
    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setScrollContainer(Z)V

    .line 241
    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setVerticalScrollBarEnabled(Z)V

    .line 242
    invoke-virtual {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setHorizontalScrollBarEnabled(Z)V

    .line 243
    check-cast p1, Landroid/app/Activity;

    .end local p1
    invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    .line 244
    return-void
.end method

.method static synthetic access$000(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 78
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I

    return v0
.end method

.method static synthetic access$002(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 78
    iput p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I

    return p1
.end method

.method static synthetic access$100(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;
    .locals 1
    .parameter "x0"

    .prologue
    .line 78
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    return-object v0
.end method

.method static synthetic access$200(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 78
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z

    return v0
.end method

.method static synthetic access$202(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 78
    iput-boolean p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z

    return p1
.end method

.method private destroyInner()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 1172
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->wasDestroyed()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1183
    :goto_0
    return-void

    .line 1175
    :cond_0
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;->HIDDEN:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireBridgeStateEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;Z)V

    .line 1176
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->destroyVideoView()V

    .line 1177
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->stopLoading()V

    .line 1178
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    if-eqz v0, :cond_1

    .line 1179
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    invoke-virtual {v0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->setCacheListener(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$IVideoCacheListener;)V

    .line 1180
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    .line 1182
    :cond_1
    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    goto :goto_0
.end method

.method private varargs fireEvent(Ljava/lang/String;Ljava/lang/String;ZZ[Ljava/lang/Object;)V
    .locals 7
    .parameter "eventPrefix"
    .parameter "event"
    .parameter "escapeParams"
    .parameter "inThisThread"
    .parameter "args"

    .prologue
    .line 1113
    iget-boolean v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mPageLoaded:Z

    if-eqz v5, :cond_3

    .line 1114
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "if (typeof burstlyRewardsBridge != \"undefined\")"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1115
    .local v4, script:Ljava/lang/StringBuilder;
    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1116
    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1117
    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1118
    if-eqz p5, :cond_2

    array-length v5, p5

    if-lez v5, :cond_2

    .line 1119
    move-object v1, p5

    .local v1, arr$:[Ljava/lang/Object;
    array-length v3, v1

    .local v3, len$:I
    const/4 v2, 0x0

    .local v2, i$:I
    :goto_0
    if-ge v2, v3, :cond_2

    aget-object v0, v1, v2

    .line 1120
    .local v0, arg:Ljava/lang/Object;
    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1121
    if-eqz p3, :cond_0

    .line 1122
    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1124
    :cond_0
    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    .line 1125
    if-eqz p3, :cond_1

    .line 1126
    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1119
    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 1130
    .end local v0           #arg:Ljava/lang/Object;
    .end local v1           #arr$:[Ljava/lang/Object;
    .end local v2           #i$:I
    .end local v3           #len$:I
    :cond_2
    const-string v5, ");"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 1131
    if-eqz p4, :cond_4

    .line 1132
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "javascript:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-super {p0, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->loadUrl(Ljava/lang/String;)V

    .line 1137
    .end local v4           #script:Ljava/lang/StringBuilder;
    :cond_3
    :goto_1
    return-void

    .line 1134
    .restart local v4       #script:Ljava/lang/StringBuilder;
    :cond_4
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->executeScriptUnSafe(Ljava/lang/String;)V

    goto :goto_1
.end method

.method static getState(Z)Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;
    .locals 1
    .parameter "isVisible"

    .prologue
    .line 350
    if-eqz p0, :cond_0

    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;->HIDDEN:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    goto :goto_0
.end method

.method private getVideoUrl(Ljava/lang/String;)Ljava/lang/String;
    .locals 5
    .parameter "message"

    .prologue
    .line 983
    const-string v2, "=\""

    invoke-virtual {p1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 985
    .local v0, data:[Ljava/lang/String;
    :try_start_0
    array-length v2, v0

    const/4 v3, 0x2

    if-lt v2, v3, :cond_0

    const/4 v2, 0x1

    aget-object v2, v0, v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_0

    .line 988
    :cond_0
    const/4 v2, 0x1

    aget-object v2, v0, v2

    const/4 v3, 0x0

    const/4 v4, 0x1

    aget-object v4, v0, v4

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    .line 991
    :goto_0
    return-object v2

    .line 990
    :catch_0
    move-exception v1

    .line 991
    .local v1, exception:Ljava/lang/Exception;
    const/4 v2, 0x0

    goto :goto_0
.end method

.method private static isIntentAvailable(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 5
    .parameter "context"
    .parameter "action"

    .prologue
    const/4 v3, 0x0

    .line 882
    if-nez p1, :cond_1

    .line 888
    :cond_0
    :goto_0
    return v3

    .line 885
    :cond_1
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 886
    .local v2, packageManager:Landroid/content/pm/PackageManager;
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 887
    .local v0, intent:Landroid/content/Intent;
    const/high16 v4, 0x1

    invoke-virtual {v2, v0, v4}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v1

    .line 888
    .local v1, list:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_0

    const/4 v3, 0x1

    goto :goto_0
.end method

.method private showVideoView()V
    .locals 5

    .prologue
    .line 928
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 929
    .local v0, fillparentVal:I
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v4, 0x11

    invoke-direct {v3, v0, v0, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v1, v2, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 931
    return-void
.end method

.method static sleep()V
    .locals 2

    .prologue
    .line 1045
    const-wide/16 v0, 0x3e8

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1050
    :goto_0
    return-void

    .line 1047
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method private static supportReverseLayout()Z
    .locals 2

    .prologue
    .line 867
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x9

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public canOpenUrl(Ljava/lang/String;)Z
    .locals 5
    .parameter "url"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 403
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Executing \'canOpenUrl\' {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 404
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->isIntentAvailable(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public closeActivity()V
    .locals 0

    .prologue
    .line 1355
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->closeWindow()V

    .line 1356
    return-void
.end method

.method public closeModalBrowser()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 544
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$10;

    invoke-direct {v1, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$10;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 552
    return-void
.end method

.method public closeMraid()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 507
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$8;

    invoke-direct {v1, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$8;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 515
    return-void
.end method

.method public closePlayer()V
    .locals 2

    .prologue
    .line 623
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$13;

    invoke-direct {v1, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$13;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 631
    return-void
.end method

.method public closeWindow()V
    .locals 5
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 522
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getHostingOverlay()Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;

    move-result-object v0

    .line 523
    .local v0, hostingOverlay:Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer<*>;"
    if-nez v0, :cond_0

    .line 524
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Failed to execute \'Close Window\' due the view is not opened as an interstitial"

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 535
    :goto_0
    return-void

    .line 527
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$9;

    invoke-direct {v2, p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$9;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method public currentTime()I
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 576
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Executing \'currentTime\'"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 577
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-nez v0, :cond_0

    .line 578
    const/4 v0, -0x1

    .line 580
    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->getCurrentPosition()I

    move-result v0

    goto :goto_0
.end method

.method public destroy()V
    .locals 0

    .prologue
    .line 906
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->destroyInner()V

    .line 907
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->destroy()V

    .line 908
    return-void
.end method

.method public destroyVideoView()V
    .locals 1

    .prologue
    .line 1056
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z

    .line 1057
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->hideVideoView()V

    .line 1058
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    if-eqz v0, :cond_0

    .line 1059
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->destroy()V

    .line 1061
    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    .line 1062
    return-void
.end method

.method dispatchAction(Ljava/lang/String;)V
    .locals 4
    .parameter "message"

    .prologue
    .line 961
    const-string v1, "pVideo"

    invoke-virtual {p1, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 962
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getVideoUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 963
    .local v0, url:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 964
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    .line 965
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    .line 966
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->putIntoContainer(Landroid/view/View;)V

    .line 967
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setCloseClickListener(Landroid/view/View$OnClickListener;)V

    .line 968
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    const-wide/16 v2, 0xbb8

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setShowCloseButtonDelay(J)V

    .line 969
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v1, p0, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->setListeners(Landroid/media/MediaPlayer$OnPreparedListener;Landroid/media/MediaPlayer$OnCompletionListener;Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 970
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->showVideoView()V

    .line 971
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->playVideo(Ljava/lang/String;)V

    .line 974
    .end local v0           #url:Ljava/lang/String;
    :cond_0
    return-void
.end method

.method doCloseModalBrowser()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 1245
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-eqz v1, :cond_0

    .line 1246
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1247
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v1, v6}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->setCloseListener(Landroid/view/View$OnClickListener;)V

    .line 1251
    :try_start_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->destroy()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1255
    :goto_0
    iput-object v6, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    .line 1256
    const-string v1, "browserClosed"

    new-array v2, v5, [Ljava/lang/Object;

    invoke-virtual {p0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1262
    :goto_1
    return-void

    .line 1252
    :catch_0
    move-exception v0

    .line 1253
    .local v0, e:Ljava/lang/Exception;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Problem with destroy modal view."

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 1257
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mParentRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    if-eqz v1, :cond_1

    .line 1258
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mParentRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->doCloseModalBrowser()V

    goto :goto_1

    .line 1260
    :cond_1
    const-string v1, "browserWasNotOpened"

    new-array v2, v5, [Ljava/lang/Object;

    invoke-virtual {p0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_1
.end method

.method doCloseMraidContainer()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 1268
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-eqz v0, :cond_0

    .line 1269
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->getContainedView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->onDestroy(Landroid/app/Activity;)V

    .line 1270
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1271
    iput-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    .line 1272
    const-string v0, "mraidContainerClosed"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1276
    :goto_0
    return-void

    .line 1274
    :cond_0
    const-string v0, "mraidContainerWasNotOpened"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method

.method doCloseVideoPlayer()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 1282
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-eqz v0, :cond_0

    .line 1283
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 1284
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->destroy()V

    .line 1285
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    .line 1286
    const-string v0, "videoClosed"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1290
    :goto_0
    return-void

    .line 1288
    :cond_0
    const-string v0, "videoNotLoaded"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method

.method public downloadFailed(Ljava/lang/String;)V
    .locals 5
    .parameter "url"

    .prologue
    const/4 v4, 0x0

    .line 1391
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Failed to cache {0}."

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    aput-object p1, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1392
    const-string v0, "precachedFailed"

    new-array v1, v4, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1393
    return-void
.end method

.method public downloadFinished(Ljava/lang/String;)V
    .locals 5
    .parameter "url"

    .prologue
    const/4 v4, 0x0

    .line 1385
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Finished caching of {0}."

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    aput-object p1, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1386
    const-string v0, "precached"

    new-array v1, v4, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1387
    return-void
.end method

.method public downloadStarted(Ljava/lang/String;)V
    .locals 5
    .parameter "url"

    .prologue
    .line 1380
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Started caching of {0}..."

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1381
    return-void
.end method

.method public duration()I
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 561
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Executing \'duration\'"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 562
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-nez v0, :cond_0

    .line 563
    const/4 v0, -0x1

    .line 565
    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->getDuration()I

    move-result v0

    goto :goto_0
.end method

.method public ended()V
    .locals 2

    .prologue
    .line 1340
    const-string v0, "ended"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1341
    return-void
.end method

.method public error()V
    .locals 2

    .prologue
    .line 1330
    const-string v0, "couldNotPlayVideo"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1331
    return-void
.end method

.method executeScriptUnSafe(Ljava/lang/String;)V
    .locals 2
    .parameter "script"

    .prologue
    .line 1079
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "javascript:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 1080
    return-void
.end method

.method fireBridgeStateEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;Z)V
    .locals 7
    .parameter "newState"
    .parameter "inThisThread"

    .prologue
    const/4 v3, 0x0

    .line 1309
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mPageLoaded:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mState:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    if-eq v0, p1, :cond_0

    .line 1310
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mState:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    .line 1311
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "{bridgeState: \""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mState:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\"}"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 1312
    .local v6, arguments:Ljava/lang/String;
    const-string v1, "burstlyRewardsBridge.fireCommonEvent(\'"

    const-string v2, "stateChanged"

    const/4 v0, 0x1

    new-array v5, v0, [Ljava/lang/Object;

    aput-object v6, v5, v3

    move-object v0, p0

    move v4, v3

    invoke-direct/range {v0 .. v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireEvent(Ljava/lang/String;Ljava/lang/String;ZZ[Ljava/lang/Object;)V

    .line 1314
    .end local v6           #arguments:Ljava/lang/String;
    :cond_0
    return-void
.end method

.method varargs fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 6
    .parameter "event"
    .parameter "args"

    .prologue
    .line 1089
    const-string v1, "burstlyRewardsBridge.fireCommonEvent(\'"

    const/4 v3, 0x1

    const/4 v4, 0x0

    move-object v0, p0

    move-object v2, p1

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireEvent(Ljava/lang/String;Ljava/lang/String;ZZ[Ljava/lang/Object;)V

    .line 1090
    return-void
.end method

.method varargs fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 6
    .parameter "videoEvent"
    .parameter "args"

    .prologue
    .line 1099
    const-string v1, "burstlyRewardsBridge.fireVideoEvent(\'"

    const/4 v3, 0x1

    const/4 v4, 0x0

    move-object v0, p0

    move-object v2, p1

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireEvent(Ljava/lang/String;Ljava/lang/String;ZZ[Ljava/lang/Object;)V

    .line 1100
    return-void
.end method

.method public getParentRewardsView()Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;
    .locals 1

    .prologue
    .line 1396
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mParentRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    return-object v0
.end method

.method public getSdkVersion()V
    .locals 2

    .prologue
    .line 1365
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "if (window.burstlySdkVersion != null) window.burstlySdkVersion(\'"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/burstly/lib/constants/Constants;->SDK_VERSION:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\')"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->executeScriptUnSafe(Ljava/lang/String;)V

    .line 1367
    return-void
.end method

.method public hideNativeControls()V
    .locals 5
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 380
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mCloseButtonControl:Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

    .line 381
    .local v0, listener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;
    if-eqz v0, :cond_0

    .line 382
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$4;

    invoke-direct {v2, p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$4;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 393
    :goto_0
    return-void

    .line 391
    :cond_0
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Can not send \'hide native control\' event. Native control listener is null"

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public hideVideoControls()V
    .locals 3
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 606
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    .line 607
    .local v0, vView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;
    if-eqz v0, :cond_0

    .line 608
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$12;

    invoke-direct {v2, p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$12;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 617
    :cond_0
    return-void
.end method

.method hideVideoView()V
    .locals 2

    .prologue
    .line 937
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-eqz v0, :cond_0

    .line 938
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 940
    :cond_0
    return-void
.end method

.method public isPlaying()Z
    .locals 1
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 921
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onAttachedToWindow()V
    .locals 2

    .prologue
    .line 893
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->onAttachedToWindow()V

    .line 894
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->publishBridgeLoaded()V

    .line 895
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->isShown()Z

    move-result v0

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getState(Z)Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireBridgeStateEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;Z)V

    .line 896
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1
    .parameter "view"

    .prologue
    .line 1230
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-ne v0, p1, :cond_1

    .line 1231
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->doCloseModalBrowser()V

    .line 1239
    :cond_0
    :goto_0
    return-void

    .line 1232
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    if-eqz v0, :cond_2

    .line 1233
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->doCloseMraidContainer()V

    goto :goto_0

    .line 1234
    :cond_2
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewPaneContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-eqz v0, :cond_3

    .line 1235
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->hideVideoView()V

    goto :goto_0

    .line 1236
    :cond_3
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-eqz v0, :cond_0

    .line 1237
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->doCloseVideoPlayer()V

    goto :goto_0
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 2
    .parameter "arg0"

    .prologue
    .line 997
    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I

    if-nez v1, :cond_0

    const/16 v0, 0x3e8

    .line 998
    .local v0, duration:I
    :goto_0
    invoke-virtual {p0, v0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->updateDataObject(II)V

    .line 999
    const-string v1, "javascript:burstly_dispatchTimeupdate();"

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 1000
    const-string v1, "javascript:burstly_dispatchEnded();"

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 1001
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z

    .line 1002
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->destroyVideoView()V

    .line 1003
    return-void

    .line 997
    .end local v0           #duration:I
    :cond_0
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I

    goto :goto_0
.end method

.method public onDestroy(Landroid/app/Activity;)V
    .locals 0
    .parameter "curerntActivity"

    .prologue
    .line 1164
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->destroyInner()V

    .line 1165
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->onDestroy(Landroid/app/Activity;)V

    .line 1166
    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 2

    .prologue
    .line 900
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->onDetachedFromWindow()V

    .line 901
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;->HIDDEN:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireBridgeStateEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;Z)V

    .line 902
    return-void
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 1
    .parameter "arg0"
    .parameter "arg1"
    .parameter "arg2"

    .prologue
    .line 1066
    const/4 v0, 0x0

    return v0
.end method

.method public onKey(Landroid/app/Activity;ILandroid/view/KeyEvent;)Z
    .locals 2
    .parameter "activity"
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 1208
    const/4 v0, 0x0

    .line 1225
    .local v0, handled:Z
    const/4 v1, 0x0

    return v1
.end method

.method public onPause(Landroid/app/Activity;)V
    .locals 2
    .parameter "curerntActivity"
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .prologue
    .line 1142
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xa

    if-le v0, v1, :cond_0

    .line 1143
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->onPause()V

    .line 1144
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-eqz v0, :cond_0

    .line 1145
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getRewardsView()Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->onPause()V

    .line 1148
    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x8

    if-lt v0, v1, :cond_2

    .line 1149
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-eqz v0, :cond_1

    .line 1150
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->suspend()V

    .line 1153
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    if-eqz v0, :cond_2

    .line 1154
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->suspend()V

    .line 1158
    :cond_2
    const-string v0, "backgrounded"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1160
    return-void
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .locals 2
    .parameter "arg0"

    .prologue
    .line 1007
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->hideProgress()V

    .line 1008
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z

    .line 1010
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 1036
    .local v0, thread:Ljava/lang/Thread;
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 1038
    return-void
.end method

.method public onResume(Landroid/app/Activity;)V
    .locals 2
    .parameter "curerntActivity"
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .prologue
    .line 1188
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xa

    if-le v0, v1, :cond_0

    .line 1189
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->onResume()V

    .line 1190
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-eqz v0, :cond_0

    .line 1191
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;->getRewardsView()Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->onResume()V

    .line 1194
    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x8

    if-lt v0, v1, :cond_2

    .line 1195
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-eqz v0, :cond_1

    .line 1196
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->resume()V

    .line 1199
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    if-eqz v0, :cond_2

    .line 1200
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/VideoView;->resume()V

    .line 1203
    :cond_2
    const-string v0, "foregrounded"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1204
    return-void
.end method

.method protected onVisibilityChanged(Landroid/view/View;I)V
    .locals 2
    .parameter "changedView"
    .parameter "visibility"

    .prologue
    const/4 v1, 0x0

    .line 1318
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->onVisibilityChanged(Landroid/view/View;I)V

    .line 1319
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->publishBridgeLoaded()V

    .line 1320
    if-nez p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getState(Z)Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;

    move-result-object v0

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireBridgeStateEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsBridgeState;Z)V

    .line 1321
    return-void

    :cond_0
    move v0, v1

    .line 1320
    goto :goto_0
.end method

.method public openExternalURL(Ljava/lang/String;)V
    .locals 0
    .parameter "url"

    .prologue
    .line 1360
    invoke-virtual {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->openUrlExternal(Ljava/lang/String;)V

    .line 1361
    return-void
.end method

.method public openMraid(Ljava/lang/String;)V
    .locals 2
    .parameter "html"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 477
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;

    invoke-direct {v1, p0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 499
    return-void
.end method

.method public openUrlExternal(Ljava/lang/String;)V
    .locals 2
    .parameter "url"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 415
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$5;

    invoke-direct {v1, p0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$5;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 432
    return-void
.end method

.method public openUrlModal(Ljava/lang/String;Z)V
    .locals 2
    .parameter "url"
    .parameter "showNavigationControls"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 448
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;

    invoke-direct {v1, p0, p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$6;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;Z)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 468
    return-void
.end method

.method public pause()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 820
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$18;

    invoke-direct {v1, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$18;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 839
    return-void
.end method

.method public paused()V
    .locals 2

    .prologue
    .line 1345
    const-string v0, "paused"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1346
    return-void
.end method

.method public play()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 800
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$17;

    invoke-direct {v1, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$17;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 812
    return-void
.end method

.method public playVideo(Ljava/lang/String;)V
    .locals 2
    .parameter "url"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 641
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;

    invoke-direct {v1, p0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$14;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 664
    return-void
.end method

.method public precacheVideo(Ljava/lang/String;)V
    .locals 5
    .parameter "url"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 761
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Executing \'precacheVideo\' {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 762
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->getInstance(Landroid/content/Context;)Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    .line 763
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    invoke-virtual {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->setCacheListener(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$IVideoCacheListener;)V

    .line 764
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->cacheVideo(Ljava/lang/String;)V

    .line 765
    return-void
.end method

.method publishBridgeLoaded()V
    .locals 1

    .prologue
    .line 1296
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mPageLoaded:Z

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mPublishedBridgeLoaded:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->isShown()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1297
    const-string v0, "console.log(\"firing window.burstlyBridgeLoaded if defined\"); if (window.burstlyBridgeLoaded != null) window.burstlyBridgeLoaded();"

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->executeScriptUnSafe(Ljava/lang/String;)V

    .line 1298
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mPublishedBridgeLoaded:Z

    .line 1300
    :cond_0
    return-void
.end method

.method public setBackgroundColor(Ljava/lang/String;)V
    .locals 6
    .parameter "color"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 742
    invoke-static {p1}, Lcom/burstly/lib/util/Utils;->getColorFromHex(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

    .line 743
    .local v0, bgColor:Ljava/lang/Integer;
    if-eqz v0, :cond_0

    .line 744
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Setting {0} background color to Rewards view"

    new-array v4, v4, [Ljava/lang/Object;

    aput-object p1, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 745
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->setBackgroundColor(I)V

    .line 749
    :goto_0
    return-void

    .line 747
    :cond_0
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Can not parse {0} background color"

    new-array v4, v4, [Ljava/lang/Object;

    aput-object p1, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public setCloseButtonControl(Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;)V
    .locals 0
    .parameter "closeButtonControl"

    .prologue
    .line 1375
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mCloseButtonControl:Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

    .line 1376
    return-void
.end method

.method public setCurrentTime(I)V
    .locals 2
    .parameter "time"
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 778
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;

    invoke-direct {v1, p0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$16;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;I)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 792
    return-void
.end method

.method public setHostingOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer",
            "<*>;)V"
        }
    .end annotation

    .prologue
    .line 727
    .local p1, hostingOverlay:Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer<*>;"
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->setHostingOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    .line 728
    if-eqz p1, :cond_0

    .line 729
    invoke-virtual {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;->getContainerLayout()Landroid/view/ViewGroup;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    .line 733
    :goto_0
    return-void

    .line 731
    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    goto :goto_0
.end method

.method public setOrientations(I)V
    .locals 9
    .parameter "orientation"
    .annotation build Landroid/annotation/TargetApi;
        value = 0x9
    .end annotation

    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 692
    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "RewardsView"

    const-string v6, "Executing \'setOrientations\' {0}"

    new-array v7, v2, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    aput-object v8, v7, v3

    invoke-virtual {v4, v5, v6, v7}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 693
    const/4 v1, -0x1

    .line 694
    .local v1, orientationCode:I
    packed-switch p1, :pswitch_data_0

    .line 708
    :pswitch_0
    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "RewardsView"

    const-string v6, "Unsupported orientation: {0}"

    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v2, v3

    invoke-virtual {v4, v5, v6, v2}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 710
    :goto_0
    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    .line 711
    move v0, v1

    .line 712
    .local v0, orient:I
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$15;

    invoke-direct {v3, p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$15;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;I)V

    invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 723
    .end local v0           #orient:I
    :cond_0
    return-void

    .line 696
    :pswitch_1
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->supportReverseLayout()Z

    move-result v3

    if-eqz v3, :cond_1

    const/16 v1, 0x9

    .line 697
    :goto_1
    goto :goto_0

    :cond_1
    move v1, v2

    .line 696
    goto :goto_1

    .line 699
    :pswitch_2
    const/4 v1, 0x0

    .line 700
    goto :goto_0

    .line 702
    :pswitch_3
    const/4 v1, 0x1

    .line 703
    goto :goto_0

    .line 705
    :pswitch_4
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->supportReverseLayout()Z

    move-result v2

    if-eqz v2, :cond_2

    const/16 v1, 0x8

    .line 706
    :goto_2
    goto :goto_0

    :cond_2
    move v1, v3

    .line 705
    goto :goto_2

    .line 694
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_3
        :pswitch_4
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public setParentRewardsView(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)V
    .locals 0
    .parameter "parentRewardsView"

    .prologue
    .line 1400
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mParentRewardsView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    .line 1401
    return-void
.end method

.method public setWebChromeClient(Landroid/webkit/WebChromeClient;)V
    .locals 1
    .parameter "client"

    .prologue
    .line 316
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$2;

    invoke-direct {v0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$2;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Landroid/webkit/WebChromeClient;)V

    invoke-super {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 341
    return-void
.end method

.method public setWebViewClient(Landroid/webkit/WebViewClient;)V
    .locals 1
    .parameter "client"

    .prologue
    .line 248
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$1;

    invoke-direct {v0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Landroid/webkit/WebViewClient;)V

    invoke-super {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingAwareWebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 312
    return-void
.end method

.method public showNativeControls()V
    .locals 5
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 360
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mCloseButtonControl:Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

    .line 361
    .local v0, listener:Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;
    if-eqz v0, :cond_0

    .line 362
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$3;

    invoke-direct {v2, p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$3;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 373
    :goto_0
    return-void

    .line 371
    :cond_0
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Can not send \'show native control\' event. Native control listener is null"

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public showVideoControls()V
    .locals 3
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 588
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    .line 589
    .local v0, vView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;
    if-eqz v0, :cond_0

    .line 590
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$11;

    invoke-direct {v2, p0, p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$11;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 599
    :cond_0
    return-void
.end method

.method public started()V
    .locals 2

    .prologue
    .line 1335
    const-string v0, "started"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1336
    return-void
.end method

.method public stop()V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 847
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mUiHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$19;

    invoke-direct {v1, p0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$19;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 857
    return-void
.end method

.method public timeUpdate(I)V
    .locals 4
    .parameter "time"

    .prologue
    .line 1325
    const-string v0, "timeUpdate"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1326
    return-void
.end method

.method public unpaused()V
    .locals 2

    .prologue
    .line 1350
    const-string v0, "unpaused"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1351
    return-void
.end method

.method updateDataObject(II)V
    .locals 3
    .parameter "duration"
    .parameter "currentTime"

    .prologue
    .line 949
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "javascript:var burstly_videoDummy = { \"duration\" : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", \"currentTime\" : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "};"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 951
    .local v0, script:Ljava/lang/String;
    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 952
    return-void
.end method

.method public url()Ljava/lang/String;
    .locals 4
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    .prologue
    .line 675
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "RewardsView"

    const-string v2, "Executing \'url\'"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 676
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-nez v0, :cond_0

    .line 677
    const-string v0, "none"

    .line 679
    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getOriginalVideoUrl()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
